package calculator.operator;

public class LogOperator implements Operator{

    @Override
    public double doCal(double num1, double num2) {
        return Math.log(num2) / Math.log(num1);
    }

    @Override
    public int getPriority() {
        return Priority.PRIORITY_HIGHER;
    }

    @Override
    public boolean support(char c) {
        return c == '㏒';
    }
}
